﻿/*
 * @Author: liuguoyun
 * @Date: 2020-07-16 15:21:06
 * @LastEditTime: 2020-07-16 15:21:59
 * @LastEditors: liuguoyun
 * @FilePath: \undefinedd:\Github\feature-evertDayTask\Assets\_Scripts\Runtime\ViewModel\Converter\OppositeBoolConverter.cs
 * @Description: bool变量取反
 */ 

using System;

namespace UFrame
{
    public class OppositeBoolConverter
    {
        public object Convert(object value)
        {
            value = !System.Convert.ToBoolean(value);
            return value;
        }

        public object ConvertBack(object value)
        {
            value = !System.Convert.ToBoolean(value);
            return value;
        }
    }
}